//
//  SelectDistanceView.h
//  OrderSeat
//
//  Created by 王威 on 13-11-27.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol SelectDistanceViewDelegate

@optional
- (void)selectDistanceFinished:(NSDictionary *)selectedData;

@end

@class SelectDistanceSource;
@interface SelectDistanceView : UIView

@property (nonatomic, weak) id<SelectDistanceViewDelegate> delegate;

@property (nonatomic, strong) UITableView *distanceTable;
@property (nonatomic, strong) SelectDistanceSource *dataSource;
@property (nonatomic, assign) CGFloat viewHeight;

- (void)resetAttributesWithTop:(CGFloat)top;
- (void)showOrVisible;
- (void)hidden;

@end

@interface SelectDistanceSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) SelectDistanceView *view;
@property (nonatomic, strong) NSMutableArray *distanceList;

- (id)initWithView:(id)view;

@end
